#!/bin/bash

### nodes:ppn - how many nodes & cores per node (ppn) that you require
#PBS -q default
#PBS -l nodes=compute-1-4.local:ppn=1

###PBS -l nodes=1:ppn=1
#PBS -l gpus=4

### mem: amount of memory that the job will need

###PBS -l mem=60gb

 
# set max wallclock time
#PBS -l walltime=5:30:00

# set name of job
#PBS -N runNode4 

# mail alert at (b)eginning, (e)nd and (a)bortion of execution
#PBS -m bea

# send mail to the following address
#PBS -M YOUREMAIL

# use submission environment

# Set directories for output and error files 

#PBS -o /home/dfinolbe/DeepBand/2D_Case/stdout/$PBS_JOBID.o
#PBS -e /home/dfinolbe/DeepBand/2D_Case/stdout/$PBS_JOBID.e


# You can use larger number of threads, but test speed before doing so

# start job from the directory it was submitted
cd $PBS_O_WORKDIR

# define MPI host details
#. enable_hal_mpi.sh

# run through the mpirun launcher
#mpirun $MPI_HOSTS foo

mpirun -np $PBS_NP python main_2DPhononicML.py --output multi_gpu.png --gpus 4

#mpirun -np $PBS_NP python deltad_lowmem_networkS_singout.py 
#mpirun -np $PBS_NP python mgpu_deepCNN_2D.py --output multi_gpu.png --gpus 4
#mpirun -np $PBS_NP python datapublish.py

